package com.liangzhong.model.club
{
	import com.liangzhong.constants.ClubConst;
	import com.liangzhong.model.buffer.vo.BufferVo;
	
	/**
	 *球衣属性加成 
	 * @author Administrator
	 * 
	 */	
	public class ClothAttributeAdd
	{
		public static function attributeToStr($clothVo:BufferVo):String
		{
			var str:String = "";
			if($clothVo.addcoin != 0)
				str = "每场比赛欧元获得加成<font color = '#FF00FF'>" + ($clothVo.addcoin > 0? "+":"") +　$clothVo.addcoin + "%</font>\n";
			if($clothVo.addfame != 0)
				str += "每场比赛声望获得加成<font color = '#FF00FF'>" + ($clothVo.addfame > 0? "+":"")+　$clothVo.addfame + "%</font>\n";
			if($clothVo.addplayexp != 0)
				str += "每场比赛球员经验获得加成<font color = '#FF00FF'>" + ($clothVo.addplayexp > 0? "+":"")+　$clothVo.addplayexp + "%</font>\n";
			if($clothVo.addclubexp != 0)
				str += "每场比赛俱乐部经验获得加成<font color = '#FF00FF'>" + ($clothVo.addclubexp > 0? "+":"")+　$clothVo.addclubexp + "%</font>\n";
			
			
			
			if($clothVo.addattack != 0)
				str += ClubConst.playerPlayer($clothVo.ragattack) +  "进攻<font color = '#F32C2C'>" + ($clothVo.addattack > 0? "+":"")+　$clothVo.addattack + "</font>\n";
			if($clothVo.adddefence != 0)
				str += ClubConst.playerPlayer($clothVo.ragdefence) + "防守<font color = '#0099FF'>" + ($clothVo.adddefence > 0? "+":"")+　$clothVo.adddefence + "</font>\n";
			if($clothVo.addsteal != 0)
				str += ClubConst.playerPlayer($clothVo.ragsteal) + "抢断<font color = '#31FFFF'>" + ($clothVo.addsteal > 0? "+":"")+　$clothVo.addsteal + "</font>\n";
			if($clothVo.addpower != 0)
				str += ClubConst.playerPlayer($clothVo.ragpower) + "力量<font color = '#FFFF2F'>" + ($clothVo.addpower > 0? "+":"")+　$clothVo.addpower + "</font>\n";
			if($clothVo.addspeed != 0)
				str += ClubConst.playerPlayer($clothVo.ragspeed) + "速度<font color = '#9977FF'>"+ ($clothVo.addspeed > 0? "+":"")+　$clothVo.addspeed + "</font>\n";
			if($clothVo.addcontrol != 0)
				str += ClubConst.playerPlayer($clothVo.ragcontrol) + "控球<font color = '#00CC00'>" + ($clothVo.addcontrol > 0? "+":"")+　$clothVo.addcontrol + "</font>\n";
			return str;
		}
		
	}
}